package controlador;

import modelo.Sql_Lite_DAO;

import com.example.piedrapapeltijeralagartospok.GanaActivity;
import com.example.piedrapapeltijeralagartospok.MainActivity;
import com.example.piedrapapeltijeralagartospok.P1_Activity;
import com.example.piedrapapeltijeralagartospok.R;

import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;

public class Listener_Ganar implements OnClickListener {
	
	private GanaActivity ga;
	private Sql_Lite_DAO sql_dao;
	
	public Listener_Ganar(GanaActivity ga){
		this.ga=ga;
	}

	@Override
	public void onClick(View v) {
		
		Intent im = new Intent(ga,MainActivity.class);
		
		switch (v.getId()) {
		
		case R.id.menuPrincipal:
			
			im.putExtra("opcion",1);

			break;

		case R.id.volverAJugar:
			
			im.putExtra("opcion",2);
			
			break;
			


			
		}
		ga.setResult(Activity.RESULT_OK,im);
		ga.finish();

		
	}

}
